package edu.zut.cs.javaee.manager.department.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.zut.cs.javaee.manager.base.domain.BaseEntity;

@Entity
@Table(name = "T_LEADERSHIP")
/**
 * entity for ledership 
 * record leader infomation
 * @author 57281
 *
 */
public class Leadership extends BaseEntity<Long>{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -3926219704224234207L;
	@Column
	String leader_name;
	@Column
	String leader_grade;
	@Column
	String leader_worktime;
	@Column
	String leader_tel;
	
	/**
	 *
	 * wjf
	 */
	@ManyToOne
	@JoinColumn(name = "Depratment_grade")
	Department department;
	
	public String getLeader_name() {
		return leader_name;
	}
	public void setLeader_name(String leader_name) {
		this.leader_name = leader_name;
	}
	public String getLeader_grade() {
		return leader_grade;
	}
	public void setLeader_grade(String leader_grade) {
		this.leader_grade = leader_grade;
	}
	public String getLeader_worktime() {
		return leader_worktime;
	}
	public void setLeader_worktime(String leader_worktime) {
		this.leader_worktime = leader_worktime;
	}
	public String getLeader_tel() {
		return leader_tel;
	}
	public void setLeader_tel(String leader_tel) {
		this.leader_tel = leader_tel;
	}
	
	

}
